<?php include_once($_SERVER['DOCUMENT_ROOT']."/controller/common/common_setting_unit.php"); ?>



<!DOCTYPE html PUBLIC
    "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <?php include_once("../controller/detail-list.php"); ?>
    <?php include_once('../../../modules/head.php'); ?>
    <link href="../asset/css/style.css"  rel="stylesheet" type="text/css"/>
</head>






<body>

<div id="topbar">
    <?php include '../../../modules/topbar.php'; ?>
</div>



<div id="container">
    <!--Container端點01-->
    <div id="maincontent" class="list">
        <!--maincontent端點01-->


        <div id="sidebar">
            <?php include '../../../modules/sidebar.php'; ?>
        </div>




        <div id="content" class="list-box clearfix <? echo $system_part ?>">


                <?php $page_title=$plate['user']['name'];?>
                <?php include ROOT_PATH_.'/controller/common/module/mod-page-title.php'; ?>




    <?php include 'modules/mod-search.php'; ?>



    <div class=" layui-form">
        <a class="layui-btn layui-btn-xs" href="detail-add.php?sys_part=unit&sys_part=employee"><i class="layui-icon">&#xe608;</i>  新增</a>
    </div>

    <hr />





<!-- 用$system_part .list_boxes来控制来到确认板块信息显示-->
<div class="list-box">

<div class="list-boxes">







<table class="layui-table">
  <colgroup>
    <col width="60">
    <col width="120">
	<col >
	<col >
      <col >
	<col width="200">
  </colgroup>
  <thead>
    <tr>
      <th>序号</th>
        <th>账号</th>
        <th>账号简介</th>
      <th>状态</th>
      <th>权限</th>
      <th>操作</th>
    </tr>
  </thead>
  <tbody>





  <?php
	for ($i = 0; $i < $detailnum; $i++) {
    ?>
        <tr id="item<?echo $detail[$i]['nid']?>" >
      <td><?echo $i+1+$plate['page_list_num']*($nowpageid-1) ?></td>

            <td >
                <?echo $detail[$i]['name']?>
            </td>

        <td><?echo $detail[$i]['introduce']?></td>



	  <td><?echo $detail[$i]['status']?></td>
	  <td><? if($detail[$i]['admin_term']=="1"){echo "管理员";}else{echo "编辑";}?></td>
	  <td>
<!--  <a href="detail-edit.php?sys_part=employee&nid=--><?// echo $detail[$i]['nid']?><!--&nowpageid=--><?//echo $nowpageid?><!--" class="layui-btn  layui-btn-sm" >-->
<!--    <i class="layui-icon">&#xe642;</i>修改-->
<!--  </a>-->


    <a href="javascript:void(0)" onclick="delItem (<?php echo $detail[$i]['nid']?>)"
       class="delete layui-btn  layui-btn-sm" > <i class="layui-icon">&#xe640;</i>删除
    </a>



    <a href="detail-statistic.php?sys_part=user&nid=<? echo $detail[$i]['nid']?>&nowpageid=<? echo $_REQUEST['nowpageid'] ?>"
       class="layui-btn  layui-btn-sm" >
        <i class="fa fa-bar-chart-o" aria-hidden="true"></i>信息
    </a>


          <!--
          这部分涉及后期的财务系统。保留一下
          这部分涉及后期的财务系统。保留一下
          这部分涉及后期的财务系统。保留一下
          这部分涉及后期的财务系统。保留一下
          这部分涉及后期的财务系统。保留一下
          <div class="layui-btn-group" style="margin-left: 10px">
              <a href="../../finance/view/detail-add.php?sys_part=finance&nid=<? echo $detail[$i]['nid'] ?>&action=salary"
                 class="layui-btn  layui-btn-sm" target="_blank">
                  发薪
              </a>
              <a href="../../finance/view/detail-add.php?sys_part=finance&nid=<? echo $detail[$i]['nid'] ?>&action=commission"
                 class="layui-btn  layui-btn-sm" target="_blank">
                  提成
              </a>
              <a href="../../finance/view/detail-add.php?sys_part=finance&nid=<? echo $detail[$i]['nid'] ?>&action=bonus"
                 class="layui-btn  layui-btn-sm" target="_blank">
                  奖金
              </a>
          </div>
-->








  </td>
    </tr>
  <?php
}
?>



  </tbody>
</table>



    <?php
    if ($detailnum == 0)
    {
        echo "数据添加中";
    }
    ?>




</div>



    <div class="list-box-function"
        <? if ($detailnum == 0) {
            echo "style" . "='display:none'";
        } ?>
        >

        <?php include 'modules/page_numbers.php'; ?>

    </div>
</div>


<!--list-box end-->
</div>

<!--content端點01-->
</div>
<!--maincontent端點01-->
<br class="clearfloat"/>
</div>
<!--container端點01-->
</div>







<!--删除box-->
<?php include '../../../modules/deletebar.php'; ?>
<!--删除box end-->
<?php include ROOT_PATH_ . "/controller/common/module/flashbox.php"; ?>
<script src="../assets/js/detail-list-update.js"></script>
<?php include ROOT_PATH_ . "/controller/common/module/footer.php"; ?>
</body>
</html>
